import { ColumnProps } from '~/library/components/ProTable/interface'
import { Procure } from '~/src/api/interface/procure'
import { adjustmentType, stockFlagType } from '~/src/utils/serviceDict'

export const adjustmentReasonColumns: ColumnProps<Procure.AdjustmentReason>[] = [
  { type: 'selection', width: 60 },
  { type: 'index', label: '序号', width: 60 },
  { sortable: true, prop: 'content', label: '原因名称', align: 'left' },
  { sortable: true, prop: 'reasonType', label: '原因类型', enum: adjustmentType, align: 'left' },
  { sortable: true, prop: 'stockFlag', label: '出入标记', enum: stockFlagType, align: 'left' },
  { sortable: true, prop: 'remark', label: '备注', align: 'left' },
  // { prop: 'operation', label: '操作', width: 160, fixed: 'right' },
]
